package Homework10;

public class Test {
    public static void main(String[] args) {

        Doctor doctor1 = new Doctor("jack", 10, "学生", '男', 1000);
        Doctor doctor2 = new Doctor("mary", 10, "学生", '男', 1000);

        System.out.println(doctor1.equals(doctor2));//true

    }
}
